<?php

$db_ip = '192.168.2.88';

return [
    'SERVER_NAME' => "EasySwoole",
    'MAIN_SERVER' => [
        'LISTEN_ADDRESS' => '0.0.0.0',
        'PORT' => 9501,
        'SERVER_TYPE' => EASYSWOOLE_WEB_SERVER, //可选为 EASYSWOOLE_SERVER  EASYSWOOLE_WEB_SERVER EASYSWOOLE_WEB_SOCKET_SERVER
        'SOCK_TYPE' => SWOOLE_TCP,
        'RUN_MODEL' => SWOOLE_PROCESS,
        'SETTING' => [
            'worker_num' => 2,
            'max_request' => 5000,
            'task_worker_num' => 2,
            'task_max_request' => 1000,
        ],
    ],
    'TEMP_DIR' => null,
    'LOG_DIR' => null,
    'CONSOLE' => [
        'ENABLE' => true,
        'LISTEN_ADDRESS' => '127.0.0.1',
        'HOST' => '127.0.0.1',
        'PORT' => 9500,
        'USER' => 'root',
        'PASSWORD' => '123456'
    ],
    'FAST_CACHE' => [
        'PROCESS_NUM' => 0,
        'BACKLOG' => 256,
    ],
    'DISPLAY_ERROR' => true,
    /*################ MYSQL CONFIG ##################*/
    'MYSQL' => [
        'host' => $db_ip,
        'port' => '4407',
        'user' => 'xb',
        'timeout' => '5',
        'charset' => 'utf8mb4',
        'password' => '123456',
        'database' => 'wx_app',
        'POOL_MAX_NUM' => '80',
        'POOL_TIME_OUT' => '0.1',
    ],
    /*################ REDIS CONFIG ##################*/
    'REDIS' => [
        'host' => $db_ip,
        'port' => '6379',
        'auth' => '1',
        'POOL_MAX_NUM' => '80',
        'POOL_MIN_NUM' => '5',
        'POOL_TIME_OUT' => '0.1',
    ],
    'REDIS_6380' => [
        'host' => $db_ip,
        'port' => '6381',
        'auth' => '123!@#',
        'db' => 3,
        'POOL_MAX_NUM' => '80',
        'POOL_MIN_NUM' => '5',
        'POOL_TIME_OUT' => '0.1',
    ],
    /*################ 自定义 CONFIG ##################*/
    'SYS' => [
        //上传文件路径
        'upload' => '/code/Temp/_upload',
        //应用模板文件
        'view' => '/code/Temp/_app',
        //
        //域名
        'static_file_root' => 'http://img.x.siyoumi.com/',
        'oauth_root' => 'http://oauth.php.x.siyoumi.com/',
        'app_root' => 'http://app.php.x.siyoumi.com/',
        'center_root' => 'http://center.php.x.siyoumi.com/',
        //
        'log_debug_show' => 1, //调试日志,0:不显示;1:显示;
        'oauth_dev_pwd' => '123', //开启授权密码
    ]
];
